<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/resources/commons/basejs.jsp" %>
</head>
<body>
    <div style="width: 400px;padding-top: 10px;">
        <form id="form_submit" class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">用户姓名</label>
                <div class="layui-input-inline">
                    <input type="text" name="uid" lay-verify="required" placeholder="请输入用户姓名" class="layui-input" value="">
                </div>
                <label class="layui-form-label">订单金额</label>
                <div class="layui-input-inline">
                    <input type="text" name="totalPrice" lay-verify="required" placeholder="请输入订单金额" class="layui-input" value="">
                </div>
                <label class="layui-form-label">收货人</label>
                <div class="layui-input-inline">
                    <input type="text" name="des" lay-verify="required" placeholder="请输入收货人姓名" class="layui-input" value="">
                </div>
                
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-inline">
                    <input type="text" name="price" lay-verify="required|number" placeholder="请输入联系电话" class="layui-input" value="">
                </div>
                
                   <label class="layui-form-label">收货地址</label>
                <div class="layui-input-inline">
                    <input type="text" name="price" lay-verify="required" placeholder="请输入收货地址" class="layui-input" value="">
                </div>
                <label class="layui-form-label">订单状态</label>
                <div class="layui-input-inline">
                    <input type="radio" name="state" value="1" title="未支付">
                    <input type="radio" name="state" value="2" title="已支付" checked>
                </div>
				<!-- <label class="layui-form-label">收货地址</label>
				<div class="layui-input-inline">
				    <input type="text" name="price" lay-verify="required|number" placeholder="请输入收货地址" class="layui-input" value="">
				</div> -->
				            
            <div class="layui-form-item" style="display: none">
                <button type="button" lay-submit lay-filter="btn_form_submit" id="btn_form_submit" class="layui-btn layui-btn-lg"></button>
            </div>
        </form>
    </div>
</body>
<script>
    var modleName = "${ctxPath}/orders";
    //用layui加载数据
    function onLayuiInit() {
        //加载分类下拉选择框
        loadOptionList({
            url:'${ctxPath}/orders/getList',
            elementId:'typeId'
        });
        
        //绑定监听表单提交事件
        bindSubmit(modleName,'add','btn_form_submit','form_submit');
    }
</script>
</html>














